﻿@model QRCodePass.Mvc.ViewModels.Process.ProcessDetailsModel
@{
    ViewBag.Title = "流程详情信息";
}

<div class="row justify-content-center m-3">
    <div class="col-sm-6 col-md-10">

        <div class="card bg-light mb-auto">
            <div class="card-header">
                <h1>@Model.Process.ProcName  详情 </h1>
            </div>
            <div class="card-body text-center">

                <h5 class="card-title">
                    @Html.DisplayNameFor(a => a.Process.ProcName) : @Model.Process.ProcName
                </h5>

                <h5 class="card-title">@Html.DisplayNameFor(a => a.Process.Id) : @Model.Process.Id</h5>
                @foreach (var departProc in Model.Process.Departments)
                {

                    <h5 class="card-title">包含此流程的系部 : @departProc.Departments.Name</h5>
                }

                <h5 class="card-title">@Html.DisplayNameFor(a => a.Process.Description): @Model.Process.Description</h5>
                <h5 class="card-title">@Html.DisplayNameFor(a => a.Process.PreTask) : @Model.ProcessList.Find(x=>x.Id==Model.Process.PreTask)?.ProcName</h5>
                <h5 class="card-title">@Html.DisplayNameFor(a => a.Process.BuildId) : @Model.Process.Builds.Name</h5>

            </div>

            <div class="card-footer text-center">
                <a asp-action="Index" class="btn btn-info">返回</a>
                @*<a asp-action="edit" asp-route-processId="@Model.Process.Id" class="btn btn-primary">编辑</a>*@
            </div>
        </div>
    </div>
</div>
 